<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * Class GrabOrderDelivery
 * @package App\Models
 * 2021/3/19 - 10:51
 * Administrator
 * 抢单
 */
class GrabOrderDelivery extends Model
{
    protected $guarded = [];
    protected $table = 'shop_grab_order_delivery';

    /**
     * 2021/3/19--15:27
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     * @author:董宗澳
     * @email:2453611300
     * @wechat:DZA74941
     * @QQ:2453611300
     * @web:www.quzha.net
     * @method:order
     * @effect:
     */
    public function order()
    {
        return $this->hasOne('App\Models\Order', 'id', 'order_id');
    }
}
